package net.wsnetwork.jawa.common;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

public interface ConnectionHandler {
    /**
     * Handle a connection with the given input and output stream. Returns {@link true} if the
     * connection should be kept open to serve another request.
     */
    boolean handleConnection(InputStream in, OutputStream out) throws
    ConnectionProcessingException, IOException;
}
